#!/usr/bin/python
import inspect

class WykopRespLink:
    
    def _setData(self, Data):
        self.id = Data['id']
        self.title = Data['title']
        self.description = Data['description']
        self.tags = Data['tags']
        self.url = Data['url']
        self.source_url = Data['source_url']
        self.vote_count = Data['vote_count']
        self.comment_count = Data['comment_count']
        self.report_count = Data['report_count']
        self.date = Data['date']
        self.author = Data['author']
        self.group = Data['id']
        self.author_avatar = Data['author_avatar']
        self.author_avatar_med = Data['author_avatar_med']
        self.author_avatar_lo = Data['author_avatar_lo']
        self.author_group = Data['author_group']
        self.preview = Data['preview']
        self.user_lists =Data['user_lists']
        self.plus18 = Data['plus18']
        self.status = Data['status']
        self.can_vote =Data['can_vote']
        self.has_own_content =Data['has_own_content']
        self.category =Data['category']
   
    def _normalizeData(self, Data):
        
        List = []
        for El in Data:
            Obj = WykopRespLink()
            Obj._setData(El)
            List.append(Obj)
        return List
